package com.longe.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
public class UserDTO {

    @ApiModelProperty(name = "用户名", value = "6-16为字符组成", required = true)
    private String name;

    @ApiModelProperty(name = "年龄", value = "年龄必须大于0", required = false)
    private int age;

}